package spacewar2.objects;

import spacewar2.shadows.BeaconShadow;
import spacewar2.utilities.Position;

public class Beacon extends SpacewarObject {
	/**
	 * The radius of a beacon
	 */
	public static int BEACON_RADIUS = 10;
	
	public static int BEACON_MASS = 0;
	
	public static int BEACON_ENERGY_BOOST = 2500;
	
	/**
	 * Used to hash beacons
	 */
	int id;
	
	public Beacon(Position location, int id) {
		super(BEACON_MASS, BEACON_RADIUS, location);
		
		setDrawable(true);
		setAlive(true);
		this.isMoveable = false;
		this.id = id;
		shadow = new BeaconShadow(this);
	}
	
	/**
	 * Makes a copy used for security
	 */
	public Beacon deepClone() {
		Beacon newBeacon = new Beacon(getPosition().deepCopy(), id);
		newBeacon.setAlive(isAlive);
		newBeacon.id = id;
		return newBeacon;
	}



}
